/*
 * Powered By [Seven]
 * Since 2016 - 2019
 */


package com.czmh.etc.onlinepubsys.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

@Entity
@Table(name = "etc_ecardcheckin")
public class EtcEcardcheckin extends BaseModel {
	
	/**
     * 
     */
    private static final long serialVersionUID = -916252762748032485L;
    //alias
	public static final String TABLE_ALIAS = "EtcEcardcheckin";
	public static final String ALIAS_CHECK_ID = "主键ID";
	public static final String ALIAS_CHECK_NAME = "姓名";
	public static final String ALIAS_CHECK_IDCARD = "身份证号码";
	public static final String ALIAS_CHECK_PHONE = "手机号码";
	public static final String ALIAS_SERIALNUM = "申请信用卡时的记录流水号";
	public static final String ALIAS_USERID = "登记信息用户id";
	public static final String ALIAS_COMPLETEETCAPPLY = "是否已完成ETC办理申请：0，未完成，1已完成";
	public static final String ALIAS_CREATETIME = "创建时间";
	public static final String ALIAS_UPDATETIME = "更新时间";
	 
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Id
	@Column(name = "check_id")
	private java.lang.String check_id;
	@Column(name = "check_name")
	private java.lang.String check_name;
	@Column(name = "check_idcard")
	private java.lang.String check_idcard;
	@Column(name = "check_phone")
	private java.lang.String check_phone;
	@Column(name = "serialnum")
	private java.lang.String serialnum;
	@Column(name = "userid")
	private java.lang.String userid;
	@Column(name = "card_type")
	private java.lang.Integer card_type;
	@Column(name = "exchange")
	private java.lang.Integer exchange;
	@Column(name = "completeetcapply")
	private java.lang.Integer completeetcapply;
	@Column(name = "createtime")
	private java.util.Date createtime;
	@Column(name = "updatetime")
	private java.util.Date updatetime;
	//columns END

	public EtcEcardcheckin(){
	}

	public EtcEcardcheckin(
		java.lang.String check_id
	){
		this.check_id = check_id;
	}

	public java.lang.Integer getExchange() {
        return exchange;
    }

    public void setExchange(java.lang.Integer exchange) {
        this.exchange = exchange;
    }

    /**  
	 * 设置主键ID  
	 * @param check_id 主键ID  
	 */  
	public void setCheck_id(java.lang.String check_id) {
		this.check_id = check_id;
	}
	
	/**  
	 * 获取主键ID   
	 * @return check_id 主键ID   
	 */
	public java.lang.String getCheck_id() {
		return this.check_id;
	}
	/**  
	 * 设置姓名  
	 * @param check_name 姓名  
	 */  
	public void setCheck_name(java.lang.String check_name) {
		this.check_name = check_name;
	}
	
	/**  
	 * 获取姓名   
	 * @return check_name 姓名   
	 */
	public java.lang.String getCheck_name() {
		return this.check_name;
	}
	/**  
	 * 设置身份证号码  
	 * @param check_idcard 身份证号码  
	 */  
	public void setCheck_idcard(java.lang.String check_idcard) {
		this.check_idcard = check_idcard;
	}
	
	/**  
	 * 获取身份证号码   
	 * @return check_idcard 身份证号码   
	 */
	public java.lang.String getCheck_idcard() {
		return this.check_idcard;
	}
	/**  
	 * 设置手机号码  
	 * @param check_phone 手机号码  
	 */  
	public void setCheck_phone(java.lang.String check_phone) {
		this.check_phone = check_phone;
	}
	
	/**  
	 * 获取手机号码   
	 * @return check_phone 手机号码   
	 */
	public java.lang.String getCheck_phone() {
		return this.check_phone;
	}
	/**  
	 * 设置申请信用卡时的记录流水号  
	 * @param serialnum 申请信用卡时的记录流水号  
	 */  
	public void setSerialnum(java.lang.String serialnum) {
		this.serialnum = serialnum;
	}
	
	/**  
	 * 获取申请信用卡时的记录流水号   
	 * @return serialnum 申请信用卡时的记录流水号   
	 */
	public java.lang.String getSerialnum() {
		return this.serialnum;
	}
	/**  
	 * 设置登记信息用户id  
	 * @param userid 登记信息用户id  
	 */  
	public void setUserid(java.lang.String userid) {
		this.userid = userid;
	}
	
	/**  
	 * 获取登记信息用户id   
	 * @return userid 登记信息用户id   
	 */
	public java.lang.String getUserid() {
		return this.userid;
	}
	/**  
	 * 设置是否已完成ETC办理申请：0，未完成，1已完成  
	 * @param completeetcapply 是否已完成ETC办理申请：0，未完成，1已完成  
	 */  
	public void setCompleteetcapply(java.lang.Integer completeetcapply) {
		this.completeetcapply = completeetcapply;
	}
	
	/**  
	 * 获取是否已完成ETC办理申请：0，未完成，1已完成   
	 * @return completeetcapply 是否已完成ETC办理申请：0，未完成，1已完成   
	 */
	public java.lang.Integer getCompleteetcapply() {
		return this.completeetcapply;
	}
	/**  
	 * 设置创建时间  
	 * @param createtime 创建时间  
	 */  
	public void setCreatetime(java.util.Date createtime) {
		this.createtime = createtime;
	}
	
	/**  
	 * 获取创建时间   
	 * @return createtime 创建时间   
	 */
	public java.util.Date getCreatetime() {
		return this.createtime;
	}
	/**  
	 * 设置更新时间  
	 * @param updatetime 更新时间  
	 */  
	public void setUpdatetime(java.util.Date updatetime) {
		this.updatetime = updatetime;
	}
	
	/**  
	 * 获取更新时间   
	 * @return updatetime 更新时间   
	 */
	public java.util.Date getUpdatetime() {
		return this.updatetime;
	}

	public java.lang.Integer getCard_type() {
        return card_type;
    }

    public void setCard_type(java.lang.Integer card_type) {
        this.card_type = card_type;
    }

    public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("check_id",getCheck_id())
			.append("check_name",getCheck_name())
			.append("check_idcard",getCheck_idcard())
			.append("check_phone",getCheck_phone())
			.append("serialnum",getSerialnum())
			.append("userid",getUserid())
			.append("completeetcapply",getCompleteetcapply())
			.append("createtime",getCreatetime())
			.append("updatetime",getUpdatetime())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getCheck_id())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof EtcEcardcheckin == false) {
			return false;
		}
		if(this == obj) {
			return true;
		}
		EtcEcardcheckin other = (EtcEcardcheckin)obj;
		return new EqualsBuilder()
			.append(getCheck_id(),other.getCheck_id())
			.isEquals();
	}
}

